import { Component, HostBinding, Input, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

@Component({
	selector: 'm-empty-page',
	templateUrl: './empty-page.component.html',
	styleUrls: ['./empty-page.component.scss']
})
export class EmptyPageComponent implements OnInit {

	// @HostBinding('class') classes: string = 'm-grid m-grid--hor m-grid--root m-page';

	// @Input() emptyType: number;

	constructor() {
	}

	ngOnInit() {
		let currentHref = location.href;
		setTimeout(() => {
			if (currentHref == location.href) {
				history.back()
			}
		}, 300)
		// this.emptyType = +this.route.snapshot.paramMap.get('type');
		// if (!this.emptyType) {
		// 	this.emptyType = Math.floor((Math.random() * 6) + 1);
		// }
	}

}
